package com.example.onlinemusic.mapper;

import com.example.onlinemusic.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LoveMusicMapper {
    Music findLoveMusicByMusicIdAndUserId(int userId, int musicId);

    int insertLoveMusic(int userId, int musicId);

    List<Music> findLoveMusicByUserIdAndMusicName(int userId,String musicName);

    List<Music> findLoveMusicByUserId(int userId);

    int deleteLoveMusic(int musicId, int userId);
}
